import {
    request
} from '../request/index'

const getPhone = function (params) {
    // 返回
    return request({
        url: `/demo/phone`,
        method: 'post',
        data: params
    })
}
const getRubbish = function () {
    // 返回
    return request({
        url: `/rubbish/problem/list`,
        method: 'get'
    })
}

const getRank = function () {
    // 返回
    return request({
        url: `/rubbish/rank/list`,
        method: 'get'
    })
}
const postBadproblem = function (params) {
    // 返回
    return request({
        url: `/rubbish/badproblem`,
        method: 'post',
        data: params
    })
}
const getBadproblem = function (params) {
    // 返回
    return request({
        url: `/rubbish/badproblem/list`,
        method: 'get',
        data: params
    })
}
export default {
    getPhone,
    getRubbish,
    getRank,
    postBadproblem,
    getBadproblem
}